public class Test {
    public static void main(String[] args) {
        double high = 100;
        double s = 0;
        for (int i = 0; i < 10; i++) {
            if(i == 0) {
                s += high;
            } else {
                high /= 2;
                s += (high * 2);
            }
        }
        high /= 2;
        System.out.println("第10次落地时，共经过多少" + s +"米");
        System.out.println("第10次反弹" + high + "米");
    }
}
